<?php
try {
    /* 定义这个常量是为了在application.ini中引用*/
    define('APPLICATION_PATH', dirname(__FILE__));

    $application = new Yaf_Application(APPLICATION_PATH . "/conf/application.ini");

    $application->bootstrap()->run();
} catch (Exception $e) {
    echo json_encode(['errno' => -999999, 'errmag' => 'error.' . $e->getMessage()]);
}
?>
